<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<link rel="stylesheet" type="text/css" href="{$_C.hy_path}css/amazeui.min.css"/>
		<link rel="stylesheet" type="text/css" href="{$_C.hy_path}css/hy.admin.css"/>
		<link rel="stylesheet" type="text/css" href="{$_C.hy_path}css/timepicki.css"/>
		<style>
			#tooltip{
				position:absolute;
				border:1px solid #ccc;
				background:#333;
				padding:2px;
				display:none;
				color:#fff;
			}
			

		</style>
	</head>
	<body>
		<div class="am-g">
			 {include file='../Common/hy_header.html'}
			 	
            <div class="am-u-md-8 am-cf">
        <div class="am-fl am-cf">
          <div class="am-btn-toolbar am-fl">
            <div class="am-btn-group am-btn-group-xs">
						<button   onclick="save()"   type="button" class="am-btn am-btn-default "><span class="am-icon-trash-o"></span> 导出统计结果</button>
             
			</div>           
          </div>
        </div>
      </div>
      
      
	  <form action="index.php?g=admin&m=card&a=tongji" method="post">	      
	      <div class="am-u-md-2 am-cf">
	        <div class="am-fr">
	          <div class="am-input-group am-input-group-sm">
					<div class="am-u-sm-4 am-u-end">
								<select name="description" id="description" style="width:230px;" class=" field am-form-field">
										<option vuale="全部">全部</option>
									{foreach from=$description item=na}																			
								    	<option value="{$na.id}" {if $na.id==$result.cid}selected = "selected"{/if}>{$na.description}</option>   								    
								    {/foreach}   
								</select>
								
					</div>
	          </div>
	        </div>
	      </div>	
	      
	      	      <div class="am-u-md-2 am-cf">
	        <div class="am-fr">
	          <div class="am-input-group am-input-group-sm">
	   			  <span class="am-input-group-btn">
	                 <button class="am-btn" type="submit">搜索</button>
	              </span>
	      	  </div>
	        </div>
	      </div>
	           	   
	    </form>
      	
	  
      <div class="am-g">
      <div class="am-u-sm-12">
        <div class="am-form">
          <table class="am-table am-table-striped am-table-hover hy-table-main">
            <thead>
              <tr>
                 <th class="table-check">卡券名称</th>                 
				 <th class="table-type">领取时间</th>
				 
				 <th class="table-type">领取量</th>
				 
                
              </tr>
          </thead>
          <tbody>
          {foreach from=$result item=cont}
          	
          	<tr>
          		<td>{$cont.description}</td>
          		<td>{$cont.date}</td>         		
	            <td>{$cont.nums}</td>
	           	            
          	</tr>
          	</div>
          	{/foreach}
          </tbody>
        </table>
          <div class="am-cf">

			  <div class="am-fr">
				{$user_list_page}
			  </div>
			</div>
          <!-- <hr /> -->
      
        </div>
      </div>

    </div>
    </div>
   {include file='../Common/hy_footer.html'}
   <script src="{$_C.hy_path}js/jquery.min.js"></script>
   <script src="{$_C.hy_path}js/timepicki.js"></script>

   <script>
   		function save(){
   			mz=$("#description option:selected").val(),
   			window.location.href='index.php?g=admin&m=card&a=execlTJ&description='+mz
   		}
	</script>
</body>
</html>
